package com.adms.domain;

import com.adms.domain.Patrol;
import com.adms.domain.PatrolExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface PatrolMapper {
	
	//

	List<Patrol> selectByExampleAndKey(@Param("ex") PatrolExample ex, @Param("key") String key);
	void deleteBatch(int[] patrolIds);
	//
	
    long countByExample(PatrolExample example);

    int deleteByExample(PatrolExample example);

    int deleteByPrimaryKey(Integer patrolId);

    int insert(Patrol record);

    int insertSelective(Patrol record);

    List<Patrol> selectByExample(PatrolExample example);

    Patrol selectByPrimaryKey(Integer patrolId);

    int updateByExampleSelective(@Param("record") Patrol record, @Param("example") PatrolExample example);

    int updateByExample(@Param("record") Patrol record, @Param("example") PatrolExample example);

    int updateByPrimaryKeySelective(Patrol record);

    int updateByPrimaryKey(Patrol record);

}